
package easim.examples;

import javax.swing.UIManager;
import easim.win.Frame;
import easim.net.Clock;
import jist.swans.Constants;

public class Main3
{

  public static void main(String[] args) {
    try {
      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    } catch (Exception e) {
    }
    Frame.NodeFactory1.nodeClass = Node3.class;
    Frame.popupMenu2 = new PopupMenu3();
    Frame.popupMenu1 = Frame.popupMenu2;
    Frame.info = new TimeInfo();
    Frame.main(args);

  }

  public static class TimeInfo {
    public String toString() {
      long time = Clock.getTime();
      long mins = time / (60 * Constants.SECOND);
      long secs = time % (60 * Constants.SECOND) / Constants.SECOND;
      return "sim-time = " + mins + "." + secs;
    }
  }

}
